export default function(url){
  return new Promise((resolve, reject) =>{
    var scriptTag = document.createElement('script')
    script.src = url
    script.onload = resolve
    script.onerror = reject
    document.body.appendChild(script)
  })
}